/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.ages.sound

case class Sound(filename:String) {
  
  var loaded = false
  var soundBuffer:SoundBuffer = new SoundBuffer()

  SoundBufferManager.enqueueSound(this)
  

  def play()
  {
    if(loaded)
      {
        soundBuffer.play
      }
  }

}
